package com.flitsneak.designpatterns.behavioralpatterns.command;

import com.flitsneak.designpatterns.behavioralpatterns.command.concretecommand.BuySnacksDemand;
import com.flitsneak.designpatterns.behavioralpatterns.command.concretecommand.FetchExpressDemand;
import com.flitsneak.designpatterns.behavioralpatterns.command.concretecommand.PlayGamesDemand;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/7/18 15:36
 * @description
 */
public class FeiFei {
    public static void main(String[] args) {
        LickDogFeiFei lickDogFeiFei = new LickDogFeiFei();
        MissDuan missDuan = new MissDuan();
        missDuan.stateNeed(new BuySnacksDemand(lickDogFeiFei));

        missDuan.addDemand(new PlayGamesDemand(lickDogFeiFei));
        missDuan.addDemand(new BuySnacksDemand(lickDogFeiFei));
        missDuan.addDemand(new FetchExpressDemand(lickDogFeiFei));
        missDuan.stateNeeds();
    }
}
